package com.mi.service;

import com.mi.entity.AdminEntity;

import java.util.List;

//管理员
public interface AdminService {

    /**
     * 根据条件查询管理员
     * @param adminEntity
     * @return
     */
    public List<AdminEntity> queryAdmins(AdminEntity adminEntity);
    /**
     * 根据条件查询管理员
     * @param adminEntity
     * @return
     */
    public List<AdminEntity> queryAdmin(AdminEntity adminEntity);

    /**
     * 用户名唯一校验
     * @param adminEntity
     * @return
     */
    public AdminEntity soleAdmin(AdminEntity adminEntity);

    /**
     * 管理员登录
     * @param adminEntity
     * @return
     */
    public AdminEntity login(AdminEntity adminEntity);

    /**
     * 添加管理员
     * @param adminEntity
     * @return
     */
    public boolean addAdmin(AdminEntity adminEntity);

    /**
     * 删除管理员
     * @param aid
     * @return
     */
    public boolean delAdmin(String[] aid);

    /**
     * 修改管理员
     * @param adminEntity
     * @return
     */
    public boolean updAdmin(AdminEntity adminEntity) throws Exception;

    /**
     * 修改管理员状态
     * @param adminEntity
     * @return
     */
    public boolean updAdminStatus(AdminEntity adminEntity) throws Exception;

    public boolean updPass(AdminEntity adminEntity);
}
